package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;

/**
 * <p>
 * 参与砍价详情
 * </p>
 *
 * @author chenxuebin
 * @since 2018-07-14
 */
@TableName("t_cutprice_help")
public class CutpriceHelp extends Model<CutpriceHelp> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;

    /**
     * 砍价活动实例id
     */
	private Long coid;

	private Long gid;
	private Long oid;
    /**
     * 用户昵称
     */
	private String nickname;
    /**
     * 用户图像
     */
	private String avatarpic;
    /**
     * 用户id
     */
	@JsonIgnore
	private Long uid;
	@JsonIgnore
	private Long mid;
	@JsonIgnore
	private Long mpid;
	@JsonIgnore
	private Long sid;

	private Integer createday;
	private Integer highqz;
	private Integer isnew;

    /**
     * 砍价数
     */
	private BigDecimal cutprice;
	private BigDecimal leftprice;
    /**
     * 备注
     */
	private String remark;
	private Date createtime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getCoid() {
		return coid;
	}

	public void setCoid(Long coid) {
		this.coid = coid;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getAvatarpic() {
		return avatarpic;
	}

	public void setAvatarpic(String avatarpic) {
		this.avatarpic = avatarpic;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Long getGid() {
		return gid;
	}

	public void setGid(Long gid) {
		this.gid = gid;
	}

	public BigDecimal getCutprice() {
		return cutprice;
	}

	public void setCutprice(BigDecimal cutprice) {
		this.cutprice = cutprice;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public BigDecimal getLeftprice() {
		return leftprice;
	}

	public void setLeftprice(BigDecimal leftprice) {
		this.leftprice = leftprice;
	}

	public Long getOid() {
		return oid;
	}

	public void setOid(Long oid) {
		this.oid = oid;
	}

	public Long getSid() {
		return sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	public Integer getHighqz() {
		return highqz;
	}

	public void setHighqz(Integer highqz) {
		this.highqz = highqz;
	}

	public Integer getCreateday() {
		return createday;
	}

	public void setCreateday(Integer createday) {
		this.createday = createday;
	}

	public Integer getIsnew() {
		return isnew;
	}

	public void setIsnew(Integer isnew) {
		this.isnew = isnew;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "CutpriceHelp{" +
			"id=" + id +
			", coid=" + coid +
			", nickname=" + nickname +
			", avatarpic=" + avatarpic +
			", uid=" + uid +
			", cutprice=" + cutprice +
			", remark=" + remark +
			", createtime=" + createtime +
			"}";
	}
}
